
import request from '@/utils/request'
// 获取角色列表
export function getRoleList(params) {
  return request({
    url: '/sys/role',
    method: 'get',
    params
  })
}
// 新增用户信息
export function getRole(data) {
  return request({
    url: '/sys/role',
    method: 'post',
    data
  })
}
export function getDelRole(id) {
  return request({
    url: '/sys/role/' + id,
    method: 'delete'
  })
}
export function getEditRole(data) {
  return request({
    url: '/sys/role/' + data.id,
    method: 'put',
    data
  })
}
export function getRoleDetail(id) {
  return request({
    url: `/sys/role/${id}`
  })
}
export function getUpdateRoleAssign(data) {
  return request({
    url: '/sys/role/assignPrem',
    method: 'put',
    data
  })
}

